//
//  YLContinuationOrderModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/10/25.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLContinuationOrderModel.h"

@implementation YLContinuationOrderModel


- (void)setCalulationEndDate:(NSString *)calulationEndDate
{
    _calulationEndDate = calulationEndDate;
    if (calulationEndDate.length > 10) {
        _calulationEndDate = [calulationEndDate substringToIndex:10];
    }
}

- (void)setEndTime:(NSString *)endTime
{
    _endTime = endTime;
    if (endTime.length > 10) {
        _calulationEndDate = [endTime substringToIndex:10];
    }
}

- (void)setInvestmentIncomeSum:(CGFloat)investmentIncomeSum
{
    _investmentIncomeSum = investmentIncomeSum;
    _expectAllBackAmount = investmentIncomeSum;
}

@end

@implementation YLContinuationOrderItem

+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
    return @{@"item" : [YLContinuationOrderModel class]};
}

@end
